﻿@using MalkiSumWeb;
@{
    MalkiSumWeb.Models.SumrizDBEntities db = new MalkiSumWeb.Models.SumrizDBEntities();
    var Fields = db.Fields.ToList();
}
@{
    ViewBag.Title = "Sumriz - Saving & Sharing";
}
<h2>@ViewBag.Message</h2>
<ul>
    @if (!MalkiSumWeb.Controllers.MainController.IsAuthenticated)
    {
@*   <text>
        <li>@Html.ActionLink("الرئيسية", "Index", "Home")</li>
        <li>@Html.ActionLink("عن الموقع", "About", "Home")</li>
        <li>@Html.ActionLink("دخول", "Logon", "Account")</li>
        </text>*@
    }
    else
    {
@*<text>
        <li>@Html.ActionLink("الرئيسية", "Index", "Home")</li>
        <li>@Html.ActionLink("الملف الشخصى", "Profile", "Account")</li>
        <li>@Html.ActionLink("إضافة ملخص", "AddFile", "Files")</li>
        <li>@Html.ActionLink("متابعين", "Followers", "Account")</li>
        <li>@Html.ActionLink("عن الموقع", "About", "Home")</li>
        </text>*@
    }
</ul>
@foreach (MalkiSumWeb.Models.Field field in Fields)
{
    @Html.Action("FieldView", "Files", new { cat = field.ID, q = "", count = 12 });

}
<script type="text/javascript">
    $(document).ready(function () {
        $("#bannerToHide").show();
    });
</script>
